<?php
namespace Open\Pages;

/**
 * Description of Page
 *
 * @author nofear
 */
class StaticPage extends Page {
    
    public function index($key) {
        $Page       = $this->getCurrentPage($key);
        $this->view = new \System\Template('@open\staticPage.twig');
        $this->view->Page = $Page;
        $this->view->key  = $key;
        $this->view->Page = $Page;
        
        if (!$Page) {
            $this->createNotFound();
        }
    }
}
